<?php global $cv_option; ?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php hybrid_document_title(); ?></title>

<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="all" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

<?php wp_head(); // wp_head ?>
</head>

<body class="<?php hybrid_body_class(); ?>">

<div id="container" class="clearfix">
	
		<div id="header" class="clearfix">	
			
			<div class="line"></div>			
			
			<div class="center clearfix">
			
				<?php get_template_part( 'menu', 'primary' ); // Loads the menu-primary.php template. ?>

				<div id="branding">								
						<?php $logo = ($cv_option['logo'] <> '') ? $cv_option['logo'] : get_bloginfo('template_directory').'/images/'.'logo.png'; ?>
						<a href="<?php echo get_bloginfo('siteurl'); ?>"><img src="<?php echo esc_url($logo); ?>" alt="Logo" id="logo"/></a>								
				</div><!-- #branding -->	
				
				<div id="head-banner">
					<?php if($cv_option['headerbanner_type'] == 'image') {					
						$banner = $cv_option['header_banner']; 
						if(!empty($banner)) {?>
							<a href="<?php echo get_bloginfo('siteurl'); ?>"><img src="<?php echo esc_url($banner); ?>" id="header-banner"/></a>
						<?php }
					} 
					else {
						echo $cv_option['header_banner_html'];
					}?>
				</div><!-- #head-banner -->	
				
				<div class="clear"></div>
				
				<div id="hot-topics">
					<span class="hot-topics-title">HOT TOPICS</span>
					<?php if($cv_option['hottopics_type'] == 'popular-tags') wp_tag_cloud('smallest=12&largest=12&number=8&orderby=count&order=DESC'); 
					else {					
						$pieces = explode(",", $cv_option['hottopics_tags']);
						foreach($pieces as $piece) { ?>
							<a href="<?php echo get_tag_link(get_tag_id_by_name($piece)); ?>"  style="font-size:12pt;" ><?php echo $piece; ?> </a>
					<?php
						}
					}
					?>
					
				</div><!-- #hot-topics -->	
			
				<?php get_template_part('searchform'); ?>			
				
			</div><!-- .center -->
			
			
		</div>	<!-- #header -->
		
		<div class="navi-bottom"></div>